package com.urbainski.componentes.utils
{
	import spark.components.gridClasses.GridColumn;

	public class MyLabelFunction
	{
		/**
		 * @author Cristian Elder Urbainski
		 * @since 24/12/2011
		 */
		
		public function MyLabelFunction()
		{
		}
		
		public static function onSituacaoLabelFunction(item : Object, column : GridColumn) : String {
			if(item.hasOwnProperty("tpSituacao")){
				if(item["tpSituacao"] == MyConstantesGlobals.TP_ATIVO){
					return "Ativo";
				} else {
					return "Inativo";
				}
			} else {
				return "";
			}
		}
		
	}
}